<template>
		<el-container>
		<el-main class="nopadding">
            <el-card shadow="never" header="代办事项">
                <scTable :apiObj="currentProject.apiObj" ref="table" row-key="id"  >
                    <el-table-column label="事项名称" prop="projectName" ></el-table-column>
                    <el-table-column label="进度" prop="progress" width="250" sortable>
							<template #default="scope">
								<el-progress :percentage="scope.row.progress" />
							</template>
						</el-table-column>
                   
                    <el-table-column label="状态" prop="boolean">
                        <template #default="scope">
                            <sc-status-indicator v-if="scope.row.boolean" type="success"></sc-status-indicator>
                            <sc-status-indicator v-if="!scope.row.boolean" pulse type="danger"></sc-status-indicator>
                        </template>
                    </el-table-column>
                    <el-table-column label="操作" fixed="right" align="right">
                        <template #default="scope">
						<el-button type="primary" plain size="small" @click="table_edit_page(scope.row)">查看</el-button>
					</template>
                    </el-table-column>
                </scTable>
            </el-card>
		</el-main>
	</el-container>

</template>

<script>

    export default{
        data() {
            return {
                currentProject: {
                    apiObj:this.$API.mock.currentProject
                }
            };
        },
    }
</script>